home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga CD-ROM Collection
/
Amiga CD-ROM Collection - Auge 4000 and Cactus and Demo Util.iso
/
auge4000
/
46
/
lib
/
string
/
strchr.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-06-20
|
284b
|
25 lines
/*
* STRCHR.C
*
* (c)Copyright 1990, Matthew Dillon, All Rights Reserved
*/
#include <string.h>
char *
strchr(toks, c)
const char *toks;
int c;
{
while (*toks) {
if (*toks == (char)c)
return(toks);
++toks;
}
if (c == 0)
return(toks);
return(NULL);
}